<div class="zs-body" data-ng-init="formInit('gisnotice', {
        keyField:'id',
        randomFields:['id'],
        orderObject:{publishDate:1}
    }) && loadData('gisnotice');setConHei();">
    <div class="zs-map-tool">
        <div class="location">
            <a href="javascript:;">首页</a>
            <i class="right-arr"></i>
            <a href="javascript:;">日常管理</a>
            <i class="right-arr"></i>
            <a href="javascript:;">通知</a>
        </div>
        <div class="option">
            <input type="button" class="zs-btn orange" value="新建" ng-click="addRow('gisnotice') && openWindow('edit');" />
            <input type="button" class="zs-btn orange" value="编辑" ng-click="editRow('gisnotice', gisnotice.sRows[0]) && openWindow('edit')" />
            <input type="button" class="zs-btn orange" value="删除 " ng-click="delEntitys('gisnotice')" />
        </div>
    </div>
    <div class="zs-content" style="position:unset">
        <div class="zs-nice-tab idTabs">
            <div class="tool item" style="margin-left:6px;">
                <span class="search-warpper">
                    <i class="icon"></i>
                    <input type="text" class="zs-input" placeholder="标题" ng-model="gisnotice.queryObject['title']" />
                </span>
                <span class="search-warpper">
                    <i class="icon"></i>
                    <input type="text" class="zs-input" placeholder="发布者" ng-model="gisnotice.queryObject['publishUserName']" />
                </span>
            </div>
            <div class="operation item">
                <a class="ope-1" ng-click="loadData('gisnotice')"></a>
                <a class="ope-2"></a>
            </div>
            <div class="switch">

            </div>
        </div>
        <div class="date-container">
            <div id="zpgwd">
                <div class="zs-data-table">
                    <div class="container">
                        <table>
                            <thead>
                                <tr>
                                    <th>
                                        <input id="allCheckbox" type="checkbox" ng-click="selectAll('gisnotice','allCheckbox');" />
                                    </th>
                                    <th>标题</th>
                                    <th>发布人</th>
                                    <th>发布时间</th>
                                </tr>
                            </thead>
                            <tbody>
                                <tr ng-repeat="r in gisnotice.datas">
                                    <td>
                                        <input type="checkbox" ng-click="selectRow('gisnotice',r);" ng-model="r.selected" />
                                    </td>
                                    <td>
                                        <a ng-click="editRow('gisnotice',r) && openWindow('edit');">
                                            <label ng-bind="r.title"></label>
                                        </a>
                                    </td>
                                    <td>
                                        <a ng-click="editRow('gisnotice',r) && openWindow('edit');">
                                            <label ng-bind="r.publishUserName"></label>
                                        </a>
                                    </td>
                                    <td>
                                        <a ng-click="editRow('gisnotice',r) && openWindow('edit');">
                                            <label ng-bind="r.publishDate | asDate"></label>
                                        </a>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                </div>
                <div class="zs-pagination-box">
                    <ag-Page fn='gisnotice'></ag-Page>
                </div>
            </div>
        </div>

        <div ag-Window id="edit" title="通知编辑" width='560px' height='310px'>
            <div class="zs-form-tab ibox">
                <form name="form" novalidate>
                    <table width="100%">
                        <tbody>
                            <tr>
                                <td class="text" width="20%">标题</td>
                                <td colspan="3" class="left" width="80%">
                                    <input type="text" ng-model="gisnotice.editRow.title" class="zs-input" />
                                </td>
                            </tr>
                            <tr>
                                <td class="text" width="20%">内容</td>
                                <td colspan="3" class="left" width="80%">
                                    <textarea ng-model="gisnotice.editRow.content" rows="12" cols="70"></textarea>
                                </td>
                            </tr>
                            <tr>
                                <td class="text" width="20%">发布人</td>
                                <td class="left" width="30%">
                                    <label ng-bind="gisnotice.editRow.publishUserName"></label>
                                </td>
                                <td class="text" width="20%">发布时间</td>
                                <td class="left" width="30%">
                                    <label ng-bind="gisnotice.editRow.publishDate | asDate"></label>
                                </td>
                            </tr>
                        </tbody>
                        <tfoot>
                            <tr>
                                <td colspan="4">
                                    <input type="button" name="ok" value="保存" class="zs-btn c-red" ng-click="formValidate(form) && save('gisnotice', gisnotice.editRow, saveCloseWindow)" />
                                    <input type="button" name="ok" value="取消" class="zs-btn c-green" ng-click="closeWindow('edit')" />
                                </td>
                            </tr>
                        </tfoot>
                    </table>
                </form>
            </div>
        </div>
    </div>
</div>